Skip to main content

gRevProfileReadOnly

Type

keyword

Summary

A special global variable that specifies whether to save changes to the current profile when you switch profiles.

Syntax

gRevProfileReadOnly

Description

Set the gRevProfileReadOnly variable to false when configuring a profile, so that changes you make to an object's properties are saved in the current profile.

Each object can have one or more profiles, which include settings for each property in the object's properties property. The gRevProfileReadOnly variable controls what happens when you set an object's profile, make changes to its properties, then switch to a different profile.

If this global variable is false, the profile is re-saved when you switch profiles, and any property changes you've made are saved in the profile. If it's true, the profile isn't saved when you switch to another profile.

The gRevProfileReadOnly global variable can also be changed in the Preferences dialog box:

  1. Choose LiveCode → Preferences from the menubar.
  2. Choose "Property Profiles" from the menu at the top.
  3. Click "Don't save settings when switching profiles".

Examples

global gRevProfileReadOnly
if gRevProfileReadOnly is false then switchToLargeFonts

command: answer, ask

glossary: object, property, variable, property profile, global

library: Profile library

property: properties

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?